package cn.usian.pricingstrategy.coefficient.controller;

import cn.usian.pojo.Result;
import cn.usian.pricingstrategy.coefficient.service.IWeekService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/week")
public class WeekController {
    @Autowired
    private IWeekService weekService;

    @GetMapping("/list")
    public Result list(){
        return Result.ok(weekService.list());
    }

}
